<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <input type="text"  id="duration" name="duration" value="" style="display: none">
                        <video type="text"  id="videoAttr" style="display: none"></video>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">标题：</label>
                            <div class="col-sm-8">
                                <input id="title" name="title" placeholder="请输入标题" class="form-control"
                                       type="text">
                                <input id="allocationId" th:value="${allocationId}" name="allocationId"
                                       class="form-control" type="hidden">
                                <input th:value="${allocationId}" name="parentId"
                                       class="form-control" type="hidden">
                            </div>
                        </div>

                        <!--//0规程解读 1理论题库 2案例分析题 3模拟赛场 4裁判点评 5实操技能分析6实操赛项视频 7实操物料清单-->
                        <div class="form-group">
                            <label class="col-sm-3 control-label">资源类型：</label>
                            <div class="col-sm-8">
                                <select class="form-control valid" id="type" name="type">
                                    <option value="">请选择</option>
                                    <option value="0">赛项规程</option>
                                    <option value="1">在线题库</option>
                                    <option value="2">竞赛试题</option>
                                    <option value="3">模拟赛场</option>
                                    <option value="4">专家点评</option>
                                    <option value="5" id="sc">技能参考</option>
                                    <option value="6">赛场再现</option>
                                    <option value="7">物料清单</option>
                                </select>
                                <select class="form-control valid" id="xtype" name="type" type="hidden"
                                        style="display: none" disabled>
                                    <option value="">请选择</option>
                                    <option value="0">证书标准</option>
                                    <option value="1">在线题库</option>
                                    <option value="2">课程标准</option>
                                    <option value="3">模拟考场</option>
                                    <option value="4">考评标准</option>
                                    <option value="5">技能参考</option>
                                    <option value="6">考评物料</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">组别：</label>
                            <div class="col-sm-8">
                                <select class="form-control valid" id="groupType" name="groupType">
                                    <option value="">请选择</option>
                                    <option value="1">中职组</option>
                                    <option value="2">高校组</option>
                                    <option value="3">教师组</option>
                                    <option value="4">国际组</option>
                                    <option value="5">通用</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">节点类型：</label>
                            <div class="col-sm-8">
                                <select class="form-control valid" id="nodeType" name="nodeType">
                                    <!--                                    <option value="">请选择</option>-->
                                    <option value="0">资源节点</option>
                                    <option value="1" id="mlNode">资源目录</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group" id="papermodulebox">
                            <label class="col-sm-3 control-label">试卷模版：</label>
                            <div class="col-sm-8">
                                <select id="paperModule" name="paperModule" class="form-control" type="text">
                                </select>
                            </div>
                        </div>
                        <!--                        <div class="form-group" id="uploadtypebox">-->
                        <!--                            <label class="col-sm-3 control-label">上传类型：</label>-->
                        <!--                            <div class="col-sm-8">-->
                        <!--                                <select class="form-control valid" id="uploadtype">-->
                        <!--                                    <option value="">请选择</option>-->
                        <!--                                    <option value="0">pdf</option>-->
                        <!--                                    <option value="1">视频</option>-->
                        <!--                                </select>-->
                        <!--                            </div>-->
                        <!--                        </div>-->
                        <div class="form-group" id="uploadtypebox">
                            <label class="col-sm-3 control-label">上传类型：</label>
                            <div class="col-sm-8">
                                <select class="form-control valid" id="uploadtype" name="uploadtype">
                                    <option value="">请选择</option>
                                    <option value="0" id="pdd">pdf</option>
                                    <option value="1" id="vid">视频</option>
                                    <option value="2" id="zip" style="display: none">zip压缩包</option>
                                    <option value="3" id="doc" style="display: none">文档</option>
                                </select>
                            </div>
                        </div>

                        <div class="form-group" id="modlue">
                            <label class="col-sm-3 control-label">所属模块：</label>
                            <div class="col-sm-8">
                                <select class="form-control valid" id="module" name="module">
                                    <option value="综合">综合</option>
                                    <option value="A" id="optiona">A</option>
                                    <option value="B">B</option>
                                    <option value="C">C</option>
                                </select>
                            </div>
                        </div>

                        <div class="form-group" id="pdfbox">
                            <label class="col-sm-3 control-label">pdf：</label>
                            <div class="col-sm-8">
                                <div id="pdfShow"></div>
                                <input type="button" class="btn btn-success" id="pdfbtn" value="上传pdf">
                                </input>
                            </div>
                        </div>
                        <div class="form-group" id="zipbox">
                            <label class="col-sm-3 control-label">zip压缩包：</label>
                            <div class="col-sm-8">
                                <input type="button" class="btn btn-success" id="zipbtn" value="上传zip压缩包">
                                </input>
                            </div>
                        </div>

                        <div class="form-group" id="timutypebox">
                            <label class="col-sm-3 control-label">题目类型：</label>
                            <div class="col-sm-8">
                                <select class="form-control valid" id="timutype" name="timutype">
                                    <option value="">请选择类型组合</option>
                                    <option value="0">纯文本</option>
                                    <option value="1">视频文本</option>
                                    <option value="2">图片文本</option>
                                    <option value="3">图片</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group" id="imgbox">
                            <label class="col-sm-3 control-label">图片：</label>
                            <div class="col-sm-8">
                                <!--                                <input id="img" name="img" placeholder="img" class="form-control" type="text">-->
                                <div class="layui-form-item">
                                    <div class="layui-input-block" style="margin: 0px">
                                        <div class="layui-upload-drag" id="drag">
                                            <i class="layui-icon" id="icon"></i>
                                            <p id="icontext">点击上传，或将文件拖拽到此处</p>
                                            <div class="layui-hide" id="uploadDemoView">
                                                <hr id="hr">
                                                <img src="" alt="上传成功后渲染" id="imgpic" style="max-width: 196px">
                                            </div>
                                        </div>
                                        <input type="hidden" id="img" lay-verify="picture">
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="form-group" id="fileurls">
                            <label class="col-sm-3 control-label" id="piclj">图片链接：</label>
                            <label class="col-sm-3 control-label" id="pdflj">pdf链接：</label>
                            <label class="col-sm-3 control-label" id="ziplj">zip链接：</label>
                            <div class="col-sm-8">
                                <input type="text" id="fileurl" name="fileurl" placeholder="文件链接"
                                       class="form-control"/>
                            </div>
                        </div>
                        <div class="form-group" id="docbtnbox">
                            <label class="col-sm-3 control-label">文档（.docx）：</label>
                            <div class="col-sm-8">
                                <input type="button" class="btn btn-success" id="docbtn" value="上传文档">
                                </input>
                            </div>
                        </div>
                        <div class="form-group" id="docBox">
                            <label class="col-sm-3 control-label" id="doclj">文档链接：</label>
                            <div class="col-sm-8">
                                <input type="text" id="docUrl" name="docUrl" placeholder="文件链接"
                                       class="form-control"/>
                            </div>
                        </div>

                        <div class="form-group" id="videobox">
                            <label class="col-sm-3 control-label">音频或视频：</label>
                            <div class="col-sm-8">
                                <div id="videoShow"></div>
                                <input type="button" class="btn btn-success" id="videobtn" value="上传音频或视频">
                                </input>
                            </div>
                        </div>

                        <div class="form-group" id="mp4urls">
                            <label class="col-sm-3 control-label">音频或视频链接：</label>
                            <div class="col-sm-8">
                                <input id="mp4url" name="mp4url" placeholder="音频或视频链接" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div id="fileProgress" class="form-group"
                             style="display: flex;flex-direction: row; justify-content: center">
                            <label class="col-sm-3 control-label">上传进度：</label>
                            <div class="layui-progress layui-progress-big" lay-showPercent="yes"
                                 lay-filter="progressBar" style="width: 70%">
                                <div class="layui-progress-bar layui-bg-red" lay-percent="0%"></div>
                            </div>
                        </div>
                        <div class="form-group" id="questions">
                            <label class="col-sm-3 control-label">案例分析题：</label>
                            <div class="col-sm-8">
                                <textarea id="values" name="values" class="form-control" rows="5"></textarea>

                            </div>
                        </div>
                        <div class="form-group" id="secondBox" style="display: none">
                            <label class="col-sm-3 control-label" >封面截取秒数：</label>
                            <div class="col-sm-8">
                                <input type="text" id="second" name="mileSecond" placeholder="封面截取秒数"
                                       class="form-control"/>
                            </div>
                        </div>

                        <!--                        <div class="form-group" id="questionnum">-->
                        <!--                            <label class="col-sm-3 control-label">题库数量：</label>-->
                        <!--                            <div class="col-sm-8">-->
                        <!--                                <input id="nums" name="nums" placeholder="请输入题库数量" class="form-control"-->
                        <!--                                       type="text">-->
                        <!--                            </div>-->
                        <!--                        </div>-->

                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="submit" id="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script src="//s.xlongwei.com/res/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/js/webJs/eventresource/eventresourceAllocations/add.js?r=282">
</script>

</body>
</html>
